/**
 * Created by user on 2017/5/12.
 */
public class FractionTest {
    public static void main(String[] args) {
        Fraction f1 = new Fraction(1, 2);
        Fraction f2 = new Fraction(2, 4);
        System.out.println(f1);
        System.out.println(f2);
        System.out.println(f2.simplify());
        System.out.println(f1.add(f2));
        System.out.println(f1.minus(f2));
        System.out.println(f1.multiply(f2));
        System.out.println(f1.divide(f2));
    }
}
